package com.googlecode.jmicroerp.wicket.components.grid;

import java.io.Serializable;

/**
 * 
 * @author Alexandru.Codescu
 */
public class ColumnModel<T extends Comparable> implements Serializable {

	private String labelName;
	private String property;
	private Class<T> type;
	private T value;
	private String cssClass;

	public ColumnModel(String labelName, String property, Class<T> type) {
		this.labelName = labelName;
		this.property = property;
		this.type = type;

	}

	public ColumnModel(String labelName, String property, String cssClass,
			Class type) {
		this.labelName = labelName;
		this.property = property;
		this.cssClass = cssClass;
		this.type = type;

	}

	public String getLabelName() {
		return labelName;
	}

	public void setLabelName(String labelName) {
		this.labelName = labelName;
	}

	public String getProperty() {
		return property;
	}

	public void setProperty(String property) {
		this.property = property;
	}

	public String getCssClass() {
		return cssClass;
	}

	public void setCssClass(String cssClass) {
		this.cssClass = cssClass;
	}

	public Class<T> getType() {
		return type;
	}

	public void setType(Class<T> type) {
		this.type = type;
	}

	public T getValue() {
		return value;
	}

	public void setValue(T value) {
		this.value = value;
	}
}
